import { createSlice } from '@reduxjs/toolkit';

const userScale = createSlice({
  name: 'ruler',
  initialState: { scales: 1 },
  reducers: {
    setScale: (state, action) => {
      state.scales = action.payload;
    },
  },
});

export const { setScale } = userScale.actions;
export default userScale.reducer;
